//
//  NearByRootClass.m
//  __PRODUCTNAME__
//
//  Created by dllo on 16/09/12
//  Copyright (c) gsd. All rights reserved.
//

#import "NearByRootClass.h"
#import "NearByData.h"

@implementation NearByRootClass

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"data"]) {
        NSMutableArray *dataArr = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            NearByData *data = [NearByData modelWithDic:dic];
            [dataArr addObject:data];
        }
        _data = dataArr;
    }
}


@end
